package common.db;

import lombok.Data;

@Data
public class ColumnInfo {
    public String name;
    public String sqlType;
    public String javaType;
    public String comment;
    public String catalog;
    public String db;
    public String table;
    public int typeId;
    public String label;
    public int size;

    public String getSize() {
        if (size > 0)
            return "(" + size + ")";
        return "";
    }

    public int precision;
    public int scale;
}
